package mysql

import "gorm.io/gorm"

type Content struct {
	gorm.Model
	Comment string `gorm:"type:varchar(30);comment:评论"`
	UserId  int64  `gorm:"type:int(11);comment:用户Id"`
	StoryId int64  `gorm:"type:int(11);comment:小说Id"`
}

func (c *Content) ContentAdd(db *gorm.DB) error {
	return db.Debug().Create(c).Error
}
